package com.woniu40.petai_manager.mapper;

import com.woniu40.petai_manager.entity.Goods;
import com.woniu40.petai_manager.vo.GoodsVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsMapper {
    int deleteByPrimaryKey(Integer goodsId);

    int insert(Goods record);

    Goods selectByPrimaryKey(Integer goodsId);

    List<Goods> selectAll();

    int updateByPrimaryKey(Goods record);

    List<GoodsVo> selectGoodsByTips(@Param("goodsName") String goodsName, @Param("brand") Integer brand);

    Integer selectMidByCode(Integer userCode);

    int deleteByPrimaryKeys(@Param("idList") List<Integer> idList);
}